/*
 * sgc_chat_logic.h
 *
 *  Created on: 2011-7-12
 *      Author: rendong
 */

#ifndef SGC_CHAT_LOGIC_H_
#define SGC_CHAT_LOGIC_H_

#include "sgc_chat_connections.h"

typedef struct _sgc_chat_message_s{
	char * message;
	int len;
}sgc_chat_message_t;

/**
 *  认证接口
 */
void chat_message_flash_auth(sgc_chat_session_t * session, int len,int type, char * message);

/**
 *  聊天接口
 */
void chat_message_flash_chat(sgc_chat_session_t * session, int len,int type, char * message);

/**
 *  加入频道
 */
void chat_message_flash_addchannel(sgc_chat_session_t * session, int len,int type, char * message);

/**
 *  查询好友状态
 */
void chat_message_flash_friend(sgc_chat_session_t * session, int len,int type, char * message);

/**
 *  查询服务器状态
 */
void chat_message_admin_status(sgc_chat_session_t * session, int len,int type, char * message);

#endif /* SGC_CHAT_LOGIC_H_ */
